package com.example.studykotlin.kotlin_actual_combat.MyKotlin.MyView

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.studykotlin.Path
import com.example.studykotlin.databinding.ActivityMyViewBinding
import com.example.studykotlin.kotlin_actual_combat.BaseActivity.BaseActivity
import com.example.studykotlin.kotlin_actual_combat.MyKotlin.MyView.CustomView.PaintCanvasView

@Route(path = Path.myView)
class MyViewActivity : BaseActivity() {
    private lateinit var binding: ActivityMyViewBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMyViewBinding.inflate(layoutInflater)
        setContentView(binding.root)

        initView()
    }

    private fun initView() {
        val paintCanvasView = PaintCanvasView(this)
        binding.root.addView(paintCanvasView)
    }
}